package com.lbw.aiTools;

import jakarta.annotation.Nullable;
import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Map;

@Slf4j
@Component
public class TimeTools{

    @Tool(description = "查询当前时间")
    public String getCurrentTime(){
        log.info("调用tool：getCurrentTime");
        return LocalDateTime.now().toString();
    }
}
